package com.oepm.common.utils;

public class RoleUtil {

    //角色转换角色id工具了
    public static String roleChange(String role){
        switch (role){
            case "校区管理员": return "1";
            case "实验中心主任": return "2";
            case "学院院长": return "3";
            case "教师": return "4";
            case "学生": return "5";
            case "1": return "1";
            case "2": return "2";
            case "3": return "3";
            case "4": return "4";
            case "5": return "5";
            default: return "";
        }
    }
    //id转换角色角色工具
    public static String idToRole(String roleId){
        switch (roleId){
            case "1": return "校区管理员";
            case "2": return "实验中心主任";
            case "3": return "学院院长";
            case "4": return "教师";
            case "5": return "学生";
            default: return "";
        }
    }
}
